<div class="c-list-pages">
	<? for ($i = 1; $i <= $number_of_pages; $i++): ?>
		<? if ($i == $current_page_number): ?>
			<? print $i ?>
		<? else: ?>
			<a href="?<? if (!empty($sorting_by)): ?>sorting_by=<? print $sorting_by ?><? endif; ?>&page=<? print $i ?>"><? print $i ?></a>
		<? endif ?>
	<? endfor; ?>
</div>